package com.yanqu.road.server.timer.activity;

import com.yanqu.road.server.manger.cross.CrossDataMgr;
import com.yanqu.road.server.manger.rank.YRankMgr;
import com.yanqu.road.utils.executor.GeneralTask;

public class UploadActivityRankTask extends GeneralTask {
    @Override
    public void doRun() {
        try {
            CrossDataMgr.timeUploadActivityRank();
        } catch (Exception e) {
            getLOGGER().error("upload activity rank error", e);
        }
        try{
            CrossDataMgr.uploadActivityRankTask();
        }catch (Exception e){
            getLOGGER().error("uploadActivityRankTask error", e);
        }
        try{
            CrossDataMgr.uploadRelationActivityRankTask();
        }catch (Exception e){
            getLOGGER().error("uploadRelationActivityRankTask error", e);
        }

        try {
            YRankMgr.uploadUserYRank();
        } catch (Exception e) {
            getLOGGER().error("YRankMgr uploadUserYRank error", e);
        }

    }
}
